package org.luxor.commons.selenium.config.properties;

/**
 * 窗口大小
 *
 * @author Mr.yan @date 2023/8/4
 */
public class WindowSize {
    public static final int DEFAULT_WIDTH = 1280;
    public static final int DEFAULT_HEIGHT = 1300;

    /**
     * 宽度(像素)，默认值：1280
     */
    private int width;

    /**
     * 高度(像素)，默认值：1300
     */
    private int height;

    public WindowSize() {
        this.width = DEFAULT_WIDTH;
        this.height = DEFAULT_HEIGHT;
    }

    public WindowSize(int width, int height) {
        this.width = width;
        this.height = height;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    @Override
    public String toString() {
        return "WindowSize{" +
                "width=" + width +
                ", height=" + height +
                '}';
    }
}
